CROSS_COMPILE=arm-linux-
CC=$(CROSS_COMPILE)gcc
CFLAGS= -c -g
#LDFLAGS= -lpthread -L ./lib -lsqlite3
LDFLAGS= -lpthread

OBJS=data_global.o main.o pthread_buzzer.o pthread_client_request.o \
	 pthread_fan.o pthread_led.o pthread_refresh.o pthread_seg.o \
	 linuxuart.o

process-monitor :$(OBJS)
	$(CC) -o $@ $^ $(LDFLAGS)
	mv *o ./obj
$(OBJS):%.o:%.c
	$(CC) $(CFLAGS) $< -o $@

install:
	sudo cp process-monitor /opt/4412/rootfs/

.PHONY:clean
clean:
	rm *.o monitor_obj -rf 
